﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security;

namespace QCCure
{
    public partial class FormLogin : Form
    {
        public FormLogin()
        {
            InitializeComponent();
        }

        public string Username 
        {
            get { return textUsername.Text; } 
            set { textUsername.Text = value; } 
        }

        public string Password 
        { 
            get { return textPassword.Text; }
            set { textPassword.Text = value; } 
        }

        public bool SavePassword
        {
            get { return checkSavePassword.Checked; }
            set { checkSavePassword.Checked = value; }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Hide();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Hide();
        }

        private void formLogin_Activated(object sender, EventArgs e)
        {
            textPassword.Focus();
        }
    }
}
